package cn.qingfeng.a004_chat_v3.message;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SendRequestMessage extends Message {
    @NonNull
    private String fromUsername;
    @NonNull
    private String toUsername;
    @NonNull
    private String content;

    @Override
    public int getMessageType() {
        return ChatRequestMessage;
    }
}
